package com.example.birdexpress.indentstalker;

import com.example.birdexpress.demo.KdniaoSubscribeDemo;
import com.example.birdexpress.param.ExpresParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 *订阅接口
 */
@Controller
public class SubscriptionController {
    @Autowired
    KdniaoSubscribeDemo KdniaoSubscribeDemoObj;

    @ResponseBody
    @RequestMapping("/subscribe")
    public String subscribe(ExpresParam ExpresParamObj) {
        String context = KdniaoSubscribeDemoObj.entrance(ExpresParamObj);
        if (context.isEmpty()) {
            return "请求结果为NULL";
        } else {
            return context;
        }
    }
}





